#!/bin/bash
file="D:/marco_data/marco_test_project/spp_dns_host_script/src/password.properties"

echo ${file}

if [ -f ${file} ]
then
    echo ${file} "found."

sudoPass=`sed '/^\\#/d' $file | grep 'sudo.password'  | tail -n 1 | cut -d"=" -f2- | sed 's/^[[:space:]]*//;s/[[:space:]]*$//'`

else
    echo ${file} "not found."
fi

echo "=============== Start TestMkdir  =================="
echo `date`
echo "==========================================="

#echo "zbsbhs2eN7u(" | sudo -S cp -f reverseIP/*.hosts /var/named/marco/
echo "${sudoPass}" #| sudo -S cp reverseIP/*.hosts /var/named/marco/

echo "=============== End TestMkdir  ==================";

echo `date`



